import request from '@/utils/request'

export function getAllSearchInfo(pageNum) {
  return request({
    url: '/view/info',
    method: 'GET',
    params: { pageNum }
  })
}

export function getSearchInfoByName(faultName) {
  return request({
    url: '/view/selectname',
    method: 'GET',
    params: { faultName }
  })
}

export function getSearchInfoByFid(turbineId) {
  return request({
    url: '/view/selectid',
    method: 'GET',
    params: { turbineId }
  })
}

export function getOldPart() {
  return request({
    url: '/fault/pie/oldParts',
    method: 'GET'
  })
}

export function getEconomy() {
  return request({
    url: '/fault/pie/economy',
    method: 'GET'
  })
}

